package cn.pro.wyn.jdbc;

import java.sql.DriverManager;

public class AppJdbc {
    public static  void main(String[] args) throws Exception {
        //加载mysql的驱动类
        Class.forName("com.mysql.jdbc.Driver");
        String url="jdbc:mysql://localhost:3306/test?useSSL=false";
        //mysql的连接账号
        String username="root";
        //mysql的连接密码
        String password="root";
        DriverManager.getConnection(url,username,password);
    }
}
